package com.cloudlead.common.lang.exception;

import com.cloudlead.common.lang.BizRuntimeException;
import com.cloudlead.common.lang.api.ResponseCode;

public class ForbiddenException extends BizRuntimeException {

    /**
     *
     */
    private static final long serialVersionUID = 9103774195114370944L;

    public ForbiddenException() {
        this(null);
    }

    public ForbiddenException(String msg) {
        this(msg, null);
    }

    public ForbiddenException(String msg, Throwable t) {
        this(0, msg, t);
    }

    public ForbiddenException(int businessCode) {
        this(businessCode, null);
    }

    public ForbiddenException(int businessCode, String msg) {
        this(businessCode, msg, null);
    }

    public ForbiddenException(int businessCode, String msg, Throwable t) {
        super(msg, t, ResponseCode.FORBIDDEN, businessCode);
    }

}
